/**
 * 接口地址全局变量
 */

// 固定地址
// var addressHost = "http://localhost:88";
// 以用户在地址栏中输入的地址为准
var addressHost = "";

// UserController =========================================================
var addressUserControllerRequestMapping = "/users";
// 使用邮箱登录或注册
var addressUCEmailLoginOrRegister =
    addressHost + addressUserControllerRequestMapping + "/emailLogin";
// 获取session中的用户信息
// TODO 此处的名字应该改为addressUCGetUserFromRedisByToken
var addressUCGetUserFromSessionByJSESSIONID =
    addressHost + addressUserControllerRequestMapping + "/getUser.login";
var addressUCGetUserFromRedisByToken =
    addressHost + addressUserControllerRequestMapping + "/getUser.login";
// 当前设备退出登录
var addressUCUserLogoutCurrent =
    addressHost + addressUserControllerRequestMapping + "/logoutCurrent.login";
// 所有设备退出登录
var addressUCUserLogoutAll =
    addressHost + addressUserControllerRequestMapping + "/logoutAll.login";
// 重置用户头像
var addressUCResetUserAvatar = 
    addressHost + addressUserControllerRequestMapping + "/resetUserAvatar.login";
// 上传头像
var addressUCUploadAvatar = 
    addressHost + addressUserControllerRequestMapping + "/uploadAvatar.login";
// 修改用户昵称
var adderssUCChangeUserNickname = 
    addressHost + addressUserControllerRequestMapping + "/changeNickname.login";
// ========================================================================

// PictureVerificationCodeController =================================================
var addressPictureVerificationCodeControllerRequestMapping = "/pictureVC";
// 生成图片验证码
var addressPVCCGetPicture =
    addressHost + addressPictureVerificationCodeControllerRequestMapping + "/picture";
// ===================================================================================

// EmailVerificationCodeController ================================
var addressEmailVerificationCodeController = "/emailVC";
// 发送邮件
var addressEVCCSendEmail =
    addressHost + addressEmailVerificationCodeController + "/send";
// ================================================================

// VariableNamerController ==================================
var addressVariableNamerController = "/vnc";
// 将中文翻译为英文并获取这个英文的所有变量名方式
var addressVNCGetAllName =
    addressHost + addressVariableNamerController + "/getAll";
// ==========================================================

// NoticeController ============================================
var addressNoticeController = "/notices";
// 获取所有公告信息
var addressNCGerAll =
    addressHost + addressNoticeController + "/getAll";
// 立即更新公告缓存
var addressNCUpdateRedis = 
    addressHost + addressNoticeController + "/updateRedis.admin"
// 插入一条新的公告
var addressNCAdd = 
    addressHost + addressNoticeController + "/add.admin"
// =============================================================

// PostController =====================================
var addressPostController = "/posts";
// 上传一条帖子
var addressPCAdd = 
    addressHost + addressPostController + "/add.login";
// 分页查询帖子
var addressPCPage = 
    addressHost + addressPostController + "/page";
// 查询某一个帖子的详细信息
var addressPCGetOneAll = 
    addressHost + addressPostController + "/getOneAll";
// ====================================================

// PostCommentController =====================================
var addressPostCommentController = "/postComments";
// 对某个帖子评论
var addressPCCAdd = 
    addressHost + addressPostCommentController + "/add.login"
// ====================================================

// PostLikeController ==============================================
var addressPostLikeController = "/postLikes";
// 点赞或取消点赞
var addressPLCLikeOrCancel = 
    addressHost + addressPostLikeController + "/likeOrCancel.login";
// =================================================================

// PostCollectionController ==================================================
var addressPostCollectionController = "/postCollections";
// 收藏
var addressPCCCollection = 
    addressHost + addressPostCollectionController + "/collection.login";
// 取消收藏
var addressPCCCancelCollection = 
    addressHost + addressPostCollectionController + "/cancelCollection.login";
// ===========================================================================